<?php



// Start the engine



require_once( get_template_directory() . '/lib/init.php' );







// Child theme (do not remove)



define( 'CHILD_THEME_NAME', 'Catapex' );



define( 'CHILD_THEME_URL', 'http://www.studiorui.com/' );







// Add Viewport meta tag for mobile browsers



add_action( 'genesis_meta', 'sample_viewport_meta_tag' );



function sample_viewport_meta_tag() {



	echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';



}







// Add support for custom background



add_theme_support( 'custom-background' );







// Add support for custom header



/*add_theme_support( 'genesis-custom-header', array(



	'width' => 1152,



	'height' => 120



) );*/







// Add support for 3-column footer widgets



add_theme_support( 'genesis-footer-widgets', 3 );







// Add support for Woocommerce



add_theme_support( 'genesis-connect-woocommerce' );







// Remove WooThemes Updater Notice



remove_action( 'admin_notices', 'woothemes_updater_notice' );





// Remove WPMU Dash notification 



remove_action( 'admin_notices', 'WPMUDEV_Dashboard_Notice' );


//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
/*add_action( 'genesis_before_footer', 'genesis_do_nav' );*/



// move footer-widgets
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
add_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);

add_filter ( 'genesis_edit_post_link' , '__return_false' );